<extend name="base/common" />
<block name="body">
    <article class="article article-condensed">
		<!-- 推荐文章列表 -->
		<cms:articles orderby="dateline desc" items="5" rank="1" picrequired="1" cachetime="3600" cachename="ranklist" return="ranks">
		<if condition="$ranks['data']">
		<div id="slider" class="carousel slide" data-ride="carousel">
			<ol class="carousel-indicators">
				<volist name="ranks['data']" id="item" key="k">
				<li data-target="#slider" data-slide-to="$k" class="<if condition="$k eq 0">active</if>"></li>
				</volist>
			</ol>
			<div class="carousel-inner">
				<volist name="ranks['data']" id="item" key="k">
				<div class="item <if condition="$k eq 0">active</if>">
					<a href="{$item[url]}"><img src="{$item[pic]}"><span class="carousel-caption">{$item[title]}</span><span class="carousel-bg"></span></a>
				</div>
				</volist>
			</div>
			<a class="left carousel-control" href="#slider" role="button" data-slide="prev"><span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span></a>
			<a class="right carousel-control" href="#slider" role="button" data-slide="next"><span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span></a>
		</div>
		</if>
		</cms:articles>
		<!-- 推荐文章列表 -->
        <header>
          <h3><i class="icon-list-ul"></i> 最新动态 <small>24小时更新：{$statics['day']|intval}篇 &nbsp; &nbsp; 一周更新：{$statics['week']|intval}篇</small></h3>
        </header>
        <div class="items items-hover">
		    <!-- 文章列表 -->
		    <cms:articles order="dateline desc" items="10" page="true" return="lists">
			    <volist name="lists['data']" id="item">
			    <include file="article/item" />
			    </volist>
			    <div class="list-page pagination">{$lists['html']}</div>
		    </cms:articles>
		    <!-- 文章列表 -->
        </div>
	</article>
</block>

<block name="script">
</block>
